# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=indxparse
pkgver=331.038e8ec
pkgrel=3
groups=('blackarch' 'blackarch-forensic')
pkgdesc='A Tool suite for inspecting NTFS artifacts.'
arch=('any')
url='http://www.williballenthin.com/forensics/mft/indxparse/'
license=('APACHE')
depends=('python2' 'python2-progressbar')
optdepends=('wxpython' 'python2-fusepy')
makedepends=('git')
source=("$pkgname::git+https://github.com/williballenthin/INDXParse.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

build() {
  cd $pkgname

  python2 setup.py build
}

package() {
  cd $pkgname

  python2 setup.py install --root="$pkgdir" -O1 --prefix=/usr --skip-build
}

